package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 需求附件类
 * </p>
 *
 * @author cy
 * @since 2020-08-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class DAccessory extends Model<DAccessory> {

    private static final long serialVersionUID = 1L;

    //附件id
    @TableId(value = "accessory_id", type = IdType.AUTO)
    private Integer accessoryId;
    //需求id
    @JsonProperty("dId")
    private Integer dId;
    //附件名
    private String accessoryName;


    @Override
    protected Serializable pkVal() {
        return this.accessoryId;
    }

}
